package com.property.manage.dao.parking;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.property.manage.model.parking.ParkingEntity;
import com.property.manage.model.parking.ParkingVo;
import com.property.manage.model.resource.Building;
import com.property.manage.model.resource.BuildingVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * 描述
 *
 * @author lwb
 * @since 2020/7/15
 */
@Repository
public interface ParkingMapper extends BaseMapper<ParkingEntity> {

    IPage<ParkingVo> getParking(@Param("page") IPage<ParkingVo> page,
                                  @Param("villageId") Integer villageId,
                                  @Param("number")String number,
                                  @Param("licensePlate") String licensePlate,
                                @Param("type")Integer type,@Param("status")Integer status);

    Integer getCount(@Param("villageId") Integer villageId);
}
